package org.fintool.runners;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;




public class Main {
	
	
	public static void main(String[] args) {
		//
	    // Create a DateFormatter object for displaying date information.
	    //
	    DateFormat formatter = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss.SSS");
	    
	    //
	    // Get date and time information in milliseconds
	    //
	    //long now = System.currentTimeMillis();
	    

	    
	    
	  long now = 1303279622387l;

	    //
	    // Create a calendar object that will convert the date and time value
	    // in milliseconds to date. We use the setTimeInMillis() method of the
	    // Calendar object.
	    //
	    Calendar calendar1 = Calendar.getInstance();
	    calendar1.setTimeInMillis(now);
	    
	    System.out.println(now + " = " + formatter.format(calendar1.getTime()));
		
	}

	




}


/*

http://www.google.com/finance/getprices?q=NCM&x=CVE&i=86400&p=1Y&f=d,c,v,o,h,l&df=cpct&auto=1&ts=1301712656355

http://www.google.com/finance/getprices?q=NCM&i=86400&p=1Y&f=d,c,v,o,h,l&df=cpct&auto=1&ts=1301712656355


http://www.google.com/finance/getprices?q=NCM&i=86400&p=1Y&f=d,c,v,o,h,l&df=cpct&auto=1&ts=1301712656355


http://www.google.com/finance/getprices?q=NCM&i=86400&p=1Y&f=d,c,v,o,h,l&df=cpct&auto=1

http://www.google.com/finance/getprices?q=NCM&i=86400&p=1Y&f=d,c,v,o,h,l&df=cpct

http://www.google.com/finance/getprices?q=NCM&i=86400&p=1Y&f=d,c,v,o,h,l&df=cpct

http://www.google.com/finance/getprices?q=NCM&i=8640&p=1Y&f=d,c,v,o,h,l&df=cpct

*/